using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace ImprCheques
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            
            //if (Utilidades.usuarioValido(Environment.UserName))
            if (Utilidades.usuarioValido(Environment.UserName))
            {
                //string [] cmdl = Environment.CommandLine.Split(new Char  [] {'/', ' '});
                //Environment.CommandLine
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new frmPrincipal());
            }
            else
            {
                MessageBox.Show("EL USUARIO : " + Environment.UserName + " NO TIENE PERMISOS PARA ESTA APLICACION", "Imprimir Cheques", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
    }
}